package com.mgxy;

import java.awt.*;

public class DeskComponent implements MyComponent{


    /** 获得桌面图片 */
    Image desk = Toolkit.getDefaultToolkit().getImage("imgs/desk.jpg");
    @Override
    public void paintSelf(Graphics g) {
        g.drawImage(desk,2,20,null);
    }
}
